#创建新的分析
uniportcode=[]
for i in open('sum.fasta'):
    if i.startswith('>'):
        uniportcode.append(i.split('|')[1])

# print(uniportcode)

for j in open('total.csv'):
    code = j.split(',')[2]
    if code in uniportcode:
        print(j,end='')